package cn.jiyun.controller;

import cn.jiyun.UserFeign;
import cn.jiyun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fay
 * @date 2022/6/27&23:28
 */
@RestController
public class ConsumerController {
    @Autowired
    private UserFeign userFeign;

    @RequestMapping(value="/consumer/getUserById")
    public User getUserById(Integer id){
        return userFeign.getUserById(id);
    }
}
